<?php if(!defined('PHPOK_SET')){die('<h3>Error...</h3>');}?><?php QG_C_TEMPLATE::p("inc.head","","0");?>

<div id="bd">
    <div id="toolbar" class="clearfix">
    	<div id="md_sitemap">
    	    <a href="home.php">TOP</a>>
            <a href="shop.php">オンラインショッピング</a>
            <a><?php echo $rs[subject];?></a>
    	</div>
    	<?php QG_C_TEMPLATE::p("inc.search","","0");?>
    </div>
    <?php if(1==1){ ?>
    <div class="noshop">申し訳ございませんが日本地域のお客様へはオンラインショップでの販売を行っておりません。<br />本HPのショップ欄に記載された販売店でお買い求めいただくか、代理店MSDにお問い合わせください。</div>
    <?php }else{ ?>
    <div id="shop" class="yui-g">
        <div id="lc" class="yui-u first"> 
            <div id="md_shopsbcate" class="shopscbox">
                <div class="hd"><a href="shop.php"><em>製品コレクション</em></a></div>
        		<div class="bd">
        		    <ul>
            		    <?php $_i=0;$left_catelist=(is_array($left_catelist))?$left_catelist:array();foreach($left_catelist AS  $key=>$value){$_i++; ?>
                		<li <?php if($value[id] == $id){?>class="on"<?php } ?>><a href="shop.php?id=<?php echo $value[id]?>&order=<?php echo $order?>"><?php echo $value[catename];?></a></li>
                		<?php } ?>
        		    </ul>
        		</div>
                <div class="ft"></div>
            </div>
        	<div id="md_shopsbhot" class="shopscbox">
        	    <div class="hd"><a href="shop.php"><em>発売中</em></a></div>
        		<div class="bd">
        		    <ul>
                		<?php $hotlist = QGMOD_SHOP_IDIN("istop DESC,hits DESC,orderdate DESC",26,false,8,false);?>
                		<?php $_i=0;$hotlist=(is_array($hotlist))?$hotlist:array();foreach($hotlist AS  $key=>$value){$_i++; ?>
                		<li><a href="productInfo.php?id=<?php echo $value[id];?>" style="<?php echo $value[style];?>" title="<?php echo $value[subject];?>"><?php echo $value[cut_subject];?></a></li>
                		<?php } ?>
                		<?php unset($hotlist);?>
                    </ul>
        		</div>
                <div class="ft"></div>
        	</div>
        </div>
        <div id="rc" class="yui-u"> 
            <div id="md_shoplist">
                <div class="hd">
                    <a class="<?php if($order=='new'||$order==''){echo 'on';}?>" href="shop.php?order=new&id=<?php echo $id?>">最新</a>
                    <a class="<?php if($order=='hot'){echo 'on';}?>" href="shop.php?order=hot&id=<?php echo $id?>">発売中</a>
                </div>
        		<div class="bd">
            		<ul class="list clearfix">
            		    <?php foreach($msglist as $key=>$value){?>
            			<li>
            			    <div class="pic">
            			        <a href="productInfo.php?f=shop&id=<?php echo $value['id']?>" ><img src="<?php if($value['thumbfile']!=''){echo $value['folder'].$value['thumbfile'];}else{echo 'templates/jp/default/images/nopicture.gif';}?>" /></a>
                                <div class="st state<?php echo '_'.$value['state']?>"></div>
                            </div>
            			    <table class="name">
                                <tr><td>
                                <a href="productInfo.php?f=shop&id=<?php echo $value['id']?>" ><?php echo $value['cut_subject']?></a>
                                </td></tr>
                            </table>
                            <span class="price"><?php echo $value['ext_marketprice']?> JPY</span>
                        </li>
            			<?php }for($i=0;$i<(20-count($msglist));$i++){?>
                        <li></li>
                        <?php }?>
            		</ul>
                    <div class="pager"><?php echo $pagelist;?></div>
                </div>
        		<div class="ft"></div>
            </div>
        </div>
    </div>
    <?php } ?>
</div>
<script type="text/javascript">
document.getElementById("lc").style.height = document.getElementById("rc").offsetHeight + "px";
</script>

<?php QG_C_TEMPLATE::p("inc.foot","","0");?>